<?php
class Zendvn_System_Request_Http extends Zend_Controller_Plugin_Abstract
{

	public function preDispatch(Zend_Controller_Request_Abstract $request){   		    
		
		$controllerName = $request->getControllerName();
      	$flagAdmin = false;
      	if($controllerName == 'admin'){
      		$flagAdmin = true;
      	}else{
      		$tmp = explode('-', $controllerName);      		
      		if(current($tmp) == 'admin'){
      			$flagAdmin = true;
      		}
      	}
      	if($flagAdmin == true){
	      	$request->setParam('accessArea', 'admin');
      	}
    }
}